<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="id1">

</div>

<script>

    var id1 =  document.getElementById('id1');
    id1.innerText='abc';
</script>
</body>
</html>